QT       += core gui sql charts
TARGET = eth_window
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    alarm_record.cpp \
    main.cpp \
    panel_main_window.cpp \
    login_widget.cpp \
    overview_view.cpp \
    alarm_view.cpp \
    data_view.cpp \
    config_view.cpp \
    point_setting_widget.cpp \
    state_info.cpp \
    dealer_handler.cpp \
    database_manager.cpp \
    edit_node_dialog.cpp \
    search_tree_widget.cpp \
    alarm_rule.cpp \
    parallelogram_button.cpp \
    log_manager.cpp \
    html_delegate.cpp \
    point_add_dialog.cpp \
    state_group.cpp \
    yk_comparison.cpp \

HEADERS += \
    alarm_record.h \
    panel_main_window.h \
    login_widget.h \
    overview_view.h \
    alarm_view.h \
    data_view.h \
    config_view.h \
    point_setting_widget.h \
    state_info.h \
    dealer_handler.h \
    database_manager.h \
    edit_node_dialog.h \
    search_tree_widget.h \
    alarm_rule.h \
    parallelogram_button.h \
    log_manager.h \
    html_delegate.h \
    pagination.h \
    point_add_dialog.h \
    state_group.h \
    yk_comparison.h \

FORMS += \
    ui/panel_main_window.ui \
    ui/login_widget.ui \
    ui/overview_view.ui \
    ui/alarm_view.ui \
    ui/data_view.ui \
    ui/config_view.ui \
    ui/edit_node_dialog.ui \
    ui/point_setting_widget.ui \
    ui/yk_comparison.ui

LIBS += \
    -L$$PWD/libs/ -lzmq

# Default rules for deployment.
DESTDIR = ../bin
RESOURCES += \
    resources.qrc

# 添加include目录
INCLUDEPATH += include

# 添加Qt的include路径
INCLUDEPATH += $$[QT_INSTALL_HEADERS]
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtWidgets
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtGui
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtCore
